//
//  MCLocationManager.h
//  乡易秀商户端
//
//  Created by delicious on 17/9/8.
//  Copyright © 2017年 chen. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <CoreLocation/CoreLocation.h>


@interface MCLocationInfo : NSObject<NSCoding>
///省份
@property (nonatomic, strong) NSString *lastProvince;
///城市
@property (nonatomic, strong) NSString *lastCity;
///区
@property (nonatomic, strong) NSString *lastDistrict;
///街道
@property (nonatomic, strong) NSString *lastStreet;
@property (nonatomic, strong) NSDate *lastDate;
@property (nonatomic, strong) CLLocation *lastLocation;
@end



typedef void(^MCLocationBlock)(NSError *error,MCLocationInfo *locationInfo);

@interface MCLocationManager : NSObject

@property (nonatomic, strong,readonly) CLLocationManager *locationManager;
@property (nonatomic, strong,readonly) MCLocationInfo *locationInfo;
@property (nonatomic, strong,readonly) NSError *locationError;
+ (MCLocationManager *)sharedLocationManager;
- (void)startUpdatingLocation:(MCLocationBlock )block;
- (void)stopUpdatingLocation;
- (void)forceUpdatingLocation;
@end

